package ModelLayer;		//makes this class a part of the ModelLayer package

/**
 * Write a description of class RentItem here.
 * @author (ucn-1semprojekt-dm78-gruppe1) 
 */
@SuppressWarnings("serial")
public class RentItem extends Item
{
    private String serialnr;
    private boolean rented;
    
    /**
     * Constructor for objects of class RentItem
     */
    public RentItem(int itemnr, String description, double price, int inStock, String location, String serialnr, boolean rented)
    {
    	super(itemnr, description, price, inStock, location); 
        this.serialnr = serialnr;
        this.rented = rented;
    }
    
    public void setSerialnr(String serialnr)
    {
        this.serialnr = serialnr;
    }
    
    public void setRented(boolean rented)
    {
        this.rented = rented;
    }
    
    public String getSerialnr()
    {
        return serialnr;
    }
    
    public boolean getRented()
    {
        return rented;
    }
    
}
